<extend name="Base/common"/>

<block name="style">
    <link href="__CSS__/people.css" rel="stylesheet" type="text/css"/>
</block>

<block name="body">
    <style>

    </style>
    <div class="app_head clearfix">
        <div class="row">
            <div class="app_title col-md-12">
                <i class="app_ico_i glyphicon glyphicon-th-large"> </i>会员
            </div>
        </div>


    </div>
    <div class="row">
        <div class="col-md-12 ">
            <div class="row">
                <volist name="lists.data" id="vo">
                    <div class="col-md-4 col-xs-6" style="min-height: 242px">
                        <div class="row people-li boxShadow" style="overflow: hidden;">
                            <div class="col-md-6 col-xs-12 col-sm-3 text-center">
                                <a target="_blank" href="{$vo.user.space_url}">
                                    <img src="{$vo.user.avatar128}" class="avatar-img"
                                         ucard="{$vo.id}">
                                </a>
                                <br/> <br/>
                                <if condition="is_login() && $vo['id'] != get_uid()">
                                    <php>
                                        $vo['is_following'] =
                                        D('Follow')->where(array('who_follow'=>get_uid(),'follow_who'=>$vo['id']))->find();
                                    </php>
                                    <p class="text-center">
                                        <a class="btn btn-primary" onclick="ufollow(this,{$vo.id})">
                                            <if condition="$vo['is_following']">
                                                已关注
                                                <else/>
                                                关注
                                            </if>
                                        </a>
                                    </p>
                                    <else/>
                                    <p class="text-center">
                                        <a class="btn btn-primary" disabled="disabled">
                                            自己
                                        </a>
                                    </p>
                                </if>
                            </div>
                            <div class="col-md-6 col-sm-9 col-xs-9">
                                <div><h3><a target="_blank" href="{$vo.user.space_url}"
                                            class="text-more"
                                            style="width: 100%">{$vo.username}</a></h3></div>
                                <br/>

                                <div>
                                    <div class="pull-left ctime">
                                        登录：{$vo.last_login_time|date='m-d',###}<br/>
                                        注册：{$vo.reg_time|date='m-d',###}<br/>
                                        关注：{$vo.user.following}&nbsp;&nbsp;&nbsp;粉丝：{$vo.user.fans}<br/>
                                        <br/>

                                        <p style="color: grey ;height: 61px;">
                                            <eq name="vo.user.signature" value="">还没想好O(∩_∩)O
                                                <else/>
                                                {$vo.user.signature}
                                            </eq>
                                        </p>
                                        <!--关注按钮，在登录状态-->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </volist>
            </div>

        </div>

        <if condition="$lists['count'] eq 0">
            <div style="font-size:3em;padding:2em 0;color: #ccc;text-align: center">本站暂无会员哦。O(∩_∩)O~</div>
        </if>

    </div>
    <div class="pull-right">
        {$lists.html}
    </div>
    <div>

    </div>


</block>

<block name="script">
    <script>
        $(function () {
            bindSupport();
        })
    </script>

</block>
